#include "cpu/exec/template-start.h"

#define	instr	movzx

make_helper(concat(movzx_rm2r_b2_, SUFFIX)) {
	int len = 1 + concat(decode_rm2r_, SUFFIX)(eip + 1);
	DATA_TYPE temp;
	uint8_t u = (uint8_t) op_src->val;
	temp = u;
	OPERAND_W(op_dest, temp);

	print_asm_template2();
	return len;
}

#if	DATA_BYTE == 4
make_helper(movzx_rm2r_w2_l) {
	int len = 1 + decode_rm2r_l(eip + 1);
	uint32_t temp;
	uint16_t u = (uint16_t) op_src->val;
	temp = u;
	OPERAND_W(op_dest, temp);

	print_asm_template2();
	return len;
}
#endif

#include "cpu/exec/template-end.h"
